package com.example.response.controller;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: dangwen
 * @createDate: 2021/1/7
 */
@Controller
@ResponseBody
public class ValueAnnotationTest {

    @Data
    class InnerClassA{
        private String s1 = "' q' %50 &73";
        private String s2 = "' q' %50 &amp;73";
        private String s3 = "&#39; q&#39; %50 &amp;73";
        private String s4 = "\' q\' %50 &73";
    }
    @Value("${swagger.host:http://www.baidu.com}")
    private String path;

    @GetMapping("test")
    public InnerClassA test(){
        return new InnerClassA();
    }
}
